<template>

<div>
      <iframe
        name="iframeMap"
        id="iframeMapViewComponent"
        style="position: absolute; top: 0px; left: 0px"
        v-bind:src="HtmlPath"
        frameborder="0"
        scrolling="auto"
        @load="adjustIframe"
        ref="iframeDom"
      ></iframe>
</div>
</template>
<script>


export default{
  data(){
    return{
    HtmlPath:"/static/html/index.html"
  };
  },
  methods:{
  //自适应高度
     adjustIframe() {
          var ifm = document.getElementById("iframeMapViewComponent");
          ifm.height = document.documentElement.clientHeight;
          ifm.width = document.documentElement.clientWidth;
        }
  }
}
</script>
